package com.jwdf.uda.http.action;

import android.content.Context;

import com.jwdf.uda.bean.PbBean;
import com.jwdf.uda.http.AHttpService;
import com.jwdf.uda.http.ApiService;

import retrofit2.Call;

/**
 * 类说明：
 * 作者：huangqiuxin on 2016/6/2 15:19
 * 邮箱：648859026@qq.com
 */
public class GuideDesignerResponseAction extends AHttpService<PbBean.PbResGuideDesignerResponse>{
    /**
     * 搭配师响应指导
     * @param context
     * @param guideId
     * @return
     */
    public static GuideDesignerResponseAction newInstance(Context context, int guideId){
        return new GuideDesignerResponseAction(context, guideId);
    }
    private int guideId;
    private GuideDesignerResponseAction(Context context, int guideId) {
        super(context);
        this.guideId = guideId;
    }

    @Override
    protected Call newRetrofitCall(ApiService apiService, PbBean.PbBaseClientInfo.Builder baseBuilder) {
        PbBean.PbReqGuideDesignerResponse.Builder builder = PbBean.PbReqGuideDesignerResponse.newBuilder();
        builder.setBaseClientInfo(baseBuilder);
        builder.setGuideId(guideId);

        return apiService.guideDesignerResponse(builder.build());
    }
}
